package com.guli.auth.util;
/*
 * @Author 罗
 * @date 2020/10/18 - 2:49 下午
 */

import java.util.Random;

public class Generate4BitCode {

    public static final Random RANDOM = new Random();

    public static String generate(){

        int i = RANDOM.nextInt(9999);

        if(i<1000){
            i+=1000;
        }

        return String.valueOf(i);
    }
}
